import { FC } from 'react'
import { useLocation } from 'react-router-dom'
import { ListState } from '../../types'
const Index: FC = () => {
  const location = useLocation()
  const state = location.state as ListState
  return (
    <div>
      <img src={state.image} width={'100%'} alt="" />
      <h3>{state.title}</h3>
    </div>
  )
}
export default Index
